cmake_minimum_required(VERSION 3.10)
project(safety)

add_subdirectory(io)
add_subdirectory(mot)
aux_source_directory(. SAFETY_SRC)
add_library(safety
${SAFETY_SRC}
)
target_link_libraries(safety
PRIVATE iosafe motsafe
)

aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/test SAFETY_TESTSRC)
ADD_TEST(safetest
SOURCES ${SAFETY_TESTSRC} ${JKTEST_MAIN}
LIBRARIES safety
)